package com.oig.sys.workflow.dto;

import com.oig.common.validator.GroupAdd;
import com.oig.common.validator.GroupEdit;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Schema
@Data
public class DataModuleDetailDto {

	@Schema(description = "ID")
	private Integer id;
	@Schema(description = "实体对象id")
	private Integer dataModuleId;

	@Schema(description = "列中文名称", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
	@NotEmpty(message = "参数错误,列中文名称不能为空", groups= {GroupAdd.class, GroupEdit.class})
	private String columnName;
	@Schema(description = "数据库列名称")
//	@NotEmpty(message = "参数错误,列名称不能为空", groups= {GroupAdd.class, GroupEdit.class})
	private String columnCol;
	@Schema(description = "列别名", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
	@NotEmpty(message = "参数错误,列别名不能为空", groups= {GroupAdd.class, GroupEdit.class})
	private String columnField;
	@Schema(description = "列值类型", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
	@NotEmpty(message = "参数错误,列值类型不能为空", groups= {GroupAdd.class, GroupEdit.class})
	private String columnValueType;
	@Schema(description = "列枚举名")
	private String enumValueJson;
	@Schema(description = "列查询组件类型")
	private String queryType;

}
